<!DOCTYPE html>
<html lang="en">
<head>
    <title>excel转json</title>
    <meta charset="utf-8">
</head>
<body>
    <textarea id="content" rows="20" cols="100"></textarea>
    <input type="button" value="转换" id="btnChange" onclick="ctyperow()" />
    <textarea id="result" rows="20" cols="100"></textarea>
     
    <input type="hidden" id="ctype" value="0" />
     
    <script src="js/jquery.min.js"></script>
    <script src="js/excel2json.js"></script>
    <script>
        function ctyperow(){
            var txt = $("#content").val();
               var html=e2j(txt);
            $("#result").val(html);
        };



    </script>
 
</body>
</html> 